package com.hjxr.xmgl.web.service.impl;

import java.util.List;

import com.hjxr.xmgl.web.domain.ProjectEarlyWarningResult;
import com.hjxr.xmgl.web.mapper.ProjectEarlyWarningResultMapper;
import com.hjxr.xmgl.web.service.IProjectEarlyWarningResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 预警结果Service业务层处理
 *
 * @author hjxr
 * @date 2021-12-02
 */
@Service
public class ProjectEarlyWarningResultServiceImpl implements IProjectEarlyWarningResultService
{
    @Autowired
    private ProjectEarlyWarningResultMapper projectEarlyWarningResultMapper;

    /**
     * 查询预警结果
     *
     * @param id 预警结果ID
     * @return 预警结果
     */
    @Override
    public ProjectEarlyWarningResult selectProjectEarlyWarningResultById(String id)
    {
        return projectEarlyWarningResultMapper.selectProjectEarlyWarningResultById(id);
    }

    /**
     * 查询预警结果列表
     *
     * @param projectEarlyWarningResult 预警结果
     * @return 预警结果
     */
    @Override
    public List<ProjectEarlyWarningResult> selectProjectEarlyWarningResultList(ProjectEarlyWarningResult projectEarlyWarningResult)
    {
        return projectEarlyWarningResultMapper.selectProjectEarlyWarningResultList(projectEarlyWarningResult);
    }

    /**
     * 新增预警结果
     *
     * @param projectEarlyWarningResult 预警结果
     * @return 结果
     */
    @Override
    public int insertProjectEarlyWarningResult(ProjectEarlyWarningResult projectEarlyWarningResult)
    {
        return projectEarlyWarningResultMapper.insertProjectEarlyWarningResult(projectEarlyWarningResult);
    }

    /**
     * 修改预警结果
     *
     * @param projectEarlyWarningResult 预警结果
     * @return 结果
     */
    @Override
    public int updateProjectEarlyWarningResult(ProjectEarlyWarningResult projectEarlyWarningResult)
    {
        return projectEarlyWarningResultMapper.updateProjectEarlyWarningResult(projectEarlyWarningResult);
    }

    /**
     * 批量删除预警结果
     *
     * @param ids 需要删除的预警结果ID
     * @return 结果
     */
    @Override
    public int deleteProjectEarlyWarningResultByIds(String[] ids)
    {
        return projectEarlyWarningResultMapper.deleteProjectEarlyWarningResultByIds(ids);
    }

    /**
     * 删除预警结果信息
     *
     * @param id 预警结果ID
     * @return 结果
     */
    @Override
    public int deleteProjectEarlyWarningResultById(String id)
    {
        return projectEarlyWarningResultMapper.deleteProjectEarlyWarningResultById(id);
    }
}
